#include "Hub_Define.h"

int HubDefine::size[2] = {2,4};

HubDefine::HubDefine(int progress)
    :FacilityDefine(
        FacilityType::HUB,
        max_interval,
        size[progress],
        size[progress],
        size[progress]*4,
        0,
        progress
        ){

        for(int i = 0; i < width; ++i){
            EnterGate r_gate = EnterGate(
                Coordinate(i,0),
                gate::GateDirection::Gate_UP
                );
            relative_enters.push_back(r_gate);
        }
        for(int i = 0; i < height; ++i){
            EnterGate r_gate = EnterGate(
                Coordinate(width-1,i),
                gate::GateDirection::Gate_RIGHT
                );
            relative_enters.push_back(r_gate);
        }
        for(int i = 0; i < width; ++i){
            EnterGate r_gate = EnterGate(
                Coordinate(i,height-1),
                gate::GateDirection::Gate_DOWN);
            relative_enters.push_back(r_gate);
        }
        for(int i = 0; i < height; ++i){
            EnterGate r_gate = EnterGate(
                Coordinate(0,i),
                gate::GateDirection::Gate_LEFT);
            relative_enters.push_back(r_gate);
        }

}

